package com.grj.park.boot.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.grj.park.boot.domain.Permission;
import com.baomidou.mybatisplus.extension.service.IService;

import javax.validation.Valid;
import java.util.Date;
import java.util.List;

/**
* @author eren
* @description 针对表【permission】的数据库操作Service
* @createDate 2024-10-22 15:36:55
*/
public interface PermissionService extends IService<Permission> {

    Page<Permission> fetchPermissionPage(int currentPage, int pageSize, Permission bean, List<Date> during);

    void postPermission(@Valid Permission permission);

    void putPermission(@Valid Permission permission);

    void delPermission(Long id);

    Permission fetchPermissionById(Integer id);

    List<Permission> fetchPermissionTree();

    List<Permission> fetchPermissionMenu();

    List<Permission> fetchPermissionMenuByIds(List<Long> permissionIds);
}
